home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / NDK / NDK_3.5 / Examples / Icon / BumpRevision.c < prev    next >
Encoding:
C/C++ Source or Header  |  1999-10-30  |  835 b   |  39 lines

  1. /*
  2.  * COPYRIGHT:
  3.  *
  4.  *   Unless otherwise noted, all files are Copyright (c) 1999 Amiga, Inc.
  5.  *   All rights reserved.
  6.  *
  7.  * DISCLAIMER:
  8.  *
  9.  *   This software is provided "as is". No representations or warranties
  10.  *   are made with respect to the accuracy, reliability, performance,
  11.  *   currentness, or operation of this software, and all use is at your
  12.  *   own risk. Neither Amiga nor the authors assume any responsibility
  13.  *   or liability whatsoever with respect to your use of this software.
  14.  */
  15.  
  16. #include <workbench/workbench.h>
  17. #include <clib/icon_protos.h>
  18. #include <clib/dos_protos.h>
  19.  
  20. int
  21. main(int argc,char **argv)
  22. {
  23.     if(argc > 1)
  24.     {
  25.         char buffer[40];
  26.         int i;
  27.  
  28.         for(i = 1 ; i < argc ; i++)
  29.         {
  30.             BumpRevision(buffer,argv[i]);
  31.  
  32.             Printf("BumpRevision(..,\"%s\") = \"%s\"\n",
  33.                 argv[i],buffer);
  34.         }
  35.     }
  36.  
  37.     return(0);
  38. }
  39.